package com.hand.zc25650.ioc;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        BeanFactory f = new ClassPathXmlApplicationContext("say.xml");
        Person person = (Person) f.getBean("person");
        person.sayHello();


    }
}
